package com.gxa.pingan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 兑换码实体
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel
public class CouponCode  implements Serializable {
    /**
     * 兑换码的编号
     */
    @ApiModelProperty(name = "id",value = "id",notes = "兑换码的编号",dataType = "Long",required = true)
    private Long id;
    /**
     * 兑换码的名称
     */
    @ApiModelProperty(name = "name",value = "name",notes = "兑换码的名称",dataType = "String",required = true)
    private String name;
    /**
     * 兑换码的兑换码信息--uuid生成
     */
    @ApiModelProperty(name = "code",value = "code",notes = "兑换码的兑换码信息--uuid生成",dataType = "String",required = true)
    private String code;
    /**
     * 兑换码生效开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "startTime",value = "startTime",notes = "兑换码生效开始时间",dataType = "Timestamp",required = true)
    private Timestamp startTime;
    /**
     * 兑换码生效结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "endTime",value = "endTime",notes = "兑换码的编号",dataType = "Timestamp",required = true)
    private Timestamp endTime;
    /**
     * 兑换码的价格
     */
    @ApiModelProperty(name = "price",value = "price",notes = "兑换码的价格",dataType = "Long",required = true)
    private Long price;
    /**
     * 兑换码的发布数量
     */
    @ApiModelProperty(name = "num",value = "num",notes = "兑换码的发布数量",dataType = "Long",required = true)
    private Long num;
    /**
     * 兑换码的领取数量
     */
    @ApiModelProperty(name = "getNum",value = "getNum",notes = "兑换码的领取数量",dataType = "Long",required = true)
    private Long getNum;

    /**
     * 兑换码的使用范围
     * @Author  lirucong
     * @Date 19:06 2021/10/26
     */
    @ApiModelProperty(name = "useRange",value = "useRange",notes = "兑换码的使用范围",dataType = "Long",required = true)
    private String useRange;
}
